package com.sunlands.qdcy.deskmate.dao.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.UpdateTimestamp;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zl
 * @version 1.0
 * @date Created in 2020/4/11
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@JsonSerialize
@DynamicUpdate
@DynamicInsert
public class PaymentWechatNoticeRecord implements Serializable {

    private static final long serialVersionUID = -2347720716892525949L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private Integer confirmType;

    private String openId;

    private String subscribe;

    private String tradeType;

    private String bankType;

    private Integer payMoney;

    private String feeType;

    private Integer cashFee;

    private String cashFeeType;

    private String transactionId;

    private String outTradeNo;

    private Date payTimeEnd;

    private String returnCode;

    private String returnMsg;

    private String resultCode;

    private String errCode;

    private String errCodeDes;

    private String tradeState;

    private String tradeStateDesc;


    @CreationTimestamp
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @UpdateTimestamp
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

}
